package com.funsport.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 运动类型实体
 *
 * @author Fun-Sport Team
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sport_types")
public class SportType implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;
    private String nameEn;
    private String icon;
    private String category;
    private String description;
    private Boolean isActive;
    private Integer sortOrder;
    private Integer eventCount;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}

